package com.fansl.koala.quickdev.module.koala.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fansl.koala.quickdev.module.koala.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author fansl
 * @Description: koala userMapper
 * @date 2020/5/6 11:19
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select id from users.user where tel = #{tel} and userType = 2")
    Long getStudentIdByTel(@Param("tel") String tel);
}
